package com.mmm.station.config.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

import javax.servlet.annotation.WebListener;

/**
 * Created by mmm on 2016/12/6.
 */
@WebListener
public class MyServletContextListener implements ApplicationListener<ApplicationEvent> {


    @Override
    public void onApplicationEvent(ApplicationEvent applicationEvent) {
        if (applicationEvent instanceof ContextRefreshedEvent) {
            System.out.println(">>>>>>>>>>>>spring容易初始化完毕<<<<<<<<<");
        }
    }




}
